@Nullable
    private static File compressImageToFile(@NonNull final Uri imageUri) {
        return scaleAndCompressImageToTemporaryFile(imageUri, -1, 100);
    }
Store a bitmap to uri.

@param bitmap    The bitmap to store
@param format    The image format
@param quality   The image quality
@param targetUri Path to store to
main/src/main/java/cgeo/geocaching/utils/ImageUtils.java