@Override
  public @Nullable CloseableReference<Bitmap> decodeJPEGFromEncodedImage(
      EncodedImage encodedImage,
      Bitmap.Config bitmapConfig,
      @Nullable Rect regionToDecode,
      int length) {
    return decodeJPEGFromEncodedImageWithColorSpace(
        encodedImage, bitmapConfig, regionToDecode, length, null);
  }
ArtPlatformImageDecoder decodes images from InputStream - to do so we need to provide temporary
buffer, otherwise framework will allocate one for us for each decode request
imagepipeline/src/main/java/com/facebook/imagepipeline/platform/DefaultDecoder.java