public Bitmap getImageSync(Uri uri) {
        CountDownLatch latch = new CountDownLatch(1);
        getImage(uri, latch, null);
        try {
            latch.await();
        } catch (InterruptedException e) {
            throw new IllegalStateException("Fetching bitmap was interrupted!");
        }
        Bitmap toReturn = mImageMap.get(latch);
        mImageMap.remove(latch);
        if (toReturn != null) {
            return toReturn;
        } else {
            ViroLog.warn(TAG, "Could not download image at: " + uri.toString());
            return null;
        }
    }
This method fetches an image synchronously.

@param uri a URI representing the location of the image to fetch.
@return the bitmap containing the image data.
android/viro_bridge/src/main/java/com/viromedia/bridge/utility/ImageDownloader.java