private void setResource(ImageWrapper w, int resId) {
   Bitmap b = loaderContext.getResBitmapCache().get("" + resId, w.getWidth(), w.getHeight());
   if (b != null) {
     w.setBitmap(b);
     return;
   }
   b =
       loaderContext
           .getBitmapUtil()
           .decodeResourceBitmapAndScale(
               w, resId, loaderContext.getSettings().isAllowUpsampling());
   loaderContext.getResBitmapCache().put(String.valueOf(resId), b);
   w.setBitmap(b);
 }