Merge "Use a native buffer for decoding images." into klp-dev