img.add(new AttributeRemover("width", "height"));
return img;
} else if (wicketId.startsWith("imageDetailButton_")) {
// for thumbnail images only - no longer for more info
return new ImageDetailButtonPanel(wicketId, wicketId.substring("imageDetailButton_".length()));
// We may want to put some of this back, but for now assuming that any time XSLT requests an image detail button we'll put one in.
// if (contentPage == null && !inGlossary) // Don't do imageDetails on non-content pages (e.g. the Table of Contents)
// return new WebMarkupContainer(wicketId).setVisible(false);
} else if (wicketId.startsWith("imgToggleHeader")