@TargetApi(Build.VERSION_CODES.HONEYCOMB)
    private static void setInBitmap(BitmapFactory.Options options, Bitmap recycled) {
        if (Build.VERSION_CODES.HONEYCOMB <= Build.VERSION.SDK_INT) {
            options.inBitmap = recycled;
        }
    }
A method for getting the dimensions of an image from the given InputStream.

@param is The InputStream representing the image.
@param options The options to pass to
         {@link BitmapFactory#decodeStream(InputStream, android.graphics.Rect,
             BitmapFactory.Options)}.
@return an array containing the dimensions of the image in the form {width, height}.
core/src/main/java/com/bumptech/glide/load/resource/bitmap/Downsampler.java