code: public void setMimeType(MimeType mimeType) {
          if (mimeType != null) {
              getState().mimeType = mimeType.getMimeType();
          } else {
              getState().mimeType = null;
          }
      }
docs: Sets the {@link MimeType} of generated images
  
  @param mimeType The {@link MimeType} of generated images