public CloseableReference<Bitmap> createBitmap(
      DisplayMetrics display, int width, int height, Bitmap.Config config) {
    return createBitmap(display, width, height, config, null);
  }
Creates a bitmap with the specified width and height. Its initial density is determined from
the given DisplayMetrics.

@param display Display metrics for the display this bitmap will be drawn on.
@param width The width of the bitmap
@param height The height of the bitmap
@param config The bitmap config to create.
@return a reference to the bitmap
@throws IllegalArgumentException if the width or height are <= 0
@throws TooManyBitmapsException if the pool is full
@throws java.lang.OutOfMemoryError if the Bitmap cannot be allocated
imagepipeline-base/src/main/java/com/facebook/imagepipeline/bitmaps/PlatformBitmapFactory.java