code: public void setMaxImageWidth(String maxImageWidth) {
          try {
              if (Integer.parseInt(maxImageWidth) > 0) {
                  this.maxImageWidth = maxImageWidth;
              }
          } catch (NumberFormatException ex) {
              LOGGER.info(String.format("You are trying to parse '%s' as a number for maxImageWidth.", maxImageWidth));
          }
      }
docs: String has to be given as an integer number bigger than 0.
  
  @param maxImageWidth maximum image width for image to be displayed fully, otherwise it is displayed as a link