if (image == null || image.getImageURL() == null)
return;
outputCellStart(image);
ImageIcon icon = image.getImageIcon(); // For width and height
String url = image.getImageURL().toString();
if (url.startsWith("file:"))
url = url.substring(5);
// Make an alt attribute from the URL
String alt = url;
int pos = alt.lastIndexOf("/");
if (pos != -1)
alt = alt.substring(pos + 1);
out.print("<img src=\"" + StringUtils.escapeHTML(url) + "\" alt=\""
+ StringUtils.escapeHTML(alt)
+ "\" width=\"" + icon.getIconWidth()
+ "\" height=\"" + icon.getIconHeight()
+ "\">");
outputCellEnd();
}