code: public static CmsJspImageBean imageTagAction(
          CmsObject cms,
          String imageUri,
          CmsImageScaler targetScaler,
          List<String> hiDpiVariantList)
      throws CmsException {
  
          CmsJspImageBean image = new CmsJspImageBean(cms, imageUri, targetScaler);
  
          // now handle (preset) hi-DPI variants
          if ((hiDpiVariantList != null) && (hiDpiVariantList.size() > 0)) {
              for (String hiDpiVariant : hiDpiVariantList) {
  
                  CmsJspImageBean hiDpiVersion = image.createHiDpiVariation(hiDpiVariant);
  
                  if (hiDpiVersion != null) {
                      image.addHiDpiImage(hiDpiVariant, hiDpiVersion);
                  }
              }
          }
          return image;
      }
docs: Internal action method to create the scaled image bean.<p>
  
  @param cms the cms context
  @param imageUri the image URI
  @param targetScaler the target image scaler
  @param hiDpiVariantList  optional list of hi-DPI variant sizes to produce, e.g. 1.3x, 1.5x, 2x, 3x
  
  @return the created ScaledImageBean bean
  
  @throws CmsException in case something goes wrong