code: public void setScaleOptions(CmsObject cms, String scaleOptions) {
  
          if (CmsStringUtil.isEmptyOrWhitespaceOnly(scaleOptions)) {
              m_scaleOptions = "";
              if (m_element.element(NODE_SCALE) != null) {
                  m_element.remove(m_element.element(NODE_SCALE));
              }
          } else {
              m_scaleOptions = scaleOptions;
          }
          setParameterValue(cms, CmsImageScaler.PARAM_SCALE, scaleOptions);
      }
docs: Sets the scale options of the image.<p>
  
  @param cms the current users context
  @param scaleOptions the scale options of the image