@Override
  public @Nullable CloseableReference<Bitmap> decodeFromEncodedImage(
      EncodedImage encodedImage, Bitmap.Config bitmapConfig, @Nullable Rect regionToDecode) {
    return decodeFromEncodedImageWithColorSpace(encodedImage, bitmapConfig, regionToDecode, 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