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