code: public static boolean isImage(String mime) {
  		try {
  			final MimeType type = new MimeType(mime);
  			return IMAGE.equalsIgnoreCase(type.getPrimaryType());
  		} catch (MimeTypeParseException e) {
  			//
  		}
  		return false;
  	}
docs: Replies if the specified MIME type corresponds to an image.
  
  @param mime is the MIME type to test.
  @return <code>true</code> if the given MIME type is corresponding to an image,
  otherwise <code>false</code>