protected @Nullable CloseableReference<Bitmap> decodeStaticImageFromStream(
      InputStream inputStream, BitmapFactory.Options options, @Nullable Rect regionToDecode) {
    return decodeFromStream(inputStream, options, regionToDecode, null);
  }
This method is needed because of dependency issues.

@param inputStream the InputStream
@param options the {@link android.graphics.BitmapFactory.Options} used to decode the stream
@param regionToDecode optional image region to decode or null to decode the whole image
@return the bitmap
imagepipeline/src/main/java/com/facebook/imagepipeline/platform/DefaultDecoder.java