/**
  * Tell if the specified fileExtension is one of a supported image format.
  *
  * @param fileExtension the file extension of a image file.
  * @return true the specified file extension if one of a supported image format.
  */
 private boolean isSupportedImageFormat(final String fileExtension) {
   boolean isSupportedImageFormat = false;
   for (ImageFileFormat element : ImageFileFormat.VALUES) {
     if (element.getName().toLowerCase().equals(fileExtension.toLowerCase())) {
       isSupportedImageFormat = true;
       break;
     }
   }
   return isSupportedImageFormat;
 }