code: protected CloseableReference<Bitmap> decodeStaticImageFromStream(
        InputStream inputStream, BitmapFactory.Options options, @Nullable Rect regionToDecode) {
      return decodeFromStream(inputStream, options, regionToDecode, null);
    }
docs: 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