code: public void setImageResizePriority(Orientation value) {
          if (value == null) img.removeAttribute(DATA_RESIZE_PRIORITY);
          else img.setAttribute(DATA_RESIZE_PRIORITY, value.getJqmValue());
      }
docs: Defines how to resize image in case of limited/explicit button size.
  <p> HORIZONTAL - width is 100% and height is auto (default mode). </p>
  <p> VERTICAL - height is 100% and width is auto. </p>
  <p> See <a href="http://stackoverflow.com/a/16217391">Flexible images</a></p>