code: private static Observable<Bitmap> getThumbnailFromUriWithSize(final Context context,
        final Uri data, final int requiredWidth, final int requiredHeight) {
      return getThumbnailFromUriWithSizeAndKind(context, data, requiredWidth, requiredHeight,
          MediaStore.Images.Thumbnails.MINI_KIND);
    }
docs: /*
  Get a thumbnail from the provided Image or Video Uri in the specified size.