private Bitmap putBitmap(String key, @Nullable Bitmap bitmap) {
    synchronized (bitmapHashLock) {
      imageAssets.get(key).setBitmap(bitmap);
      return bitmap;
    }
  }
Returns the previously set bitmap or null.
lottie/src/main/java/com/airbnb/lottie/manager/ImageAssetManager.java