code: public static Observable<Bitmap> getThumbnail(Context context, Uri uri, int requiredWidth,
        int requiredHeight, int kind) {
      return getThumbnailFromUriWithSizeAndKind(context, uri, requiredWidth, requiredHeight, kind);
    }
docs: /*
  Get a thumbnail from the provided Image or Video Uri in the specified size and kind.
  Kind is a value of MediaStore.Images.Thumbnails.MICRO_KIND or MediaStore.Images.Thumbnails.MINI_KIND