}
// Remove any images that are less than the maximum width as we always want
// to return the largest possible image. Here we also check if any of the
// images' rendering type matches the device.
ImageRendering deviceRenderingMode = device.getRenderMode();
boolean renderingMatch = false;
for (Iterator i = images.iterator(); i.hasNext();) {
Variant variant = (Variant) i.next();
ImageMetaData image = (ImageMetaData) variant.getMetaData();