Fix bug : "ImageRendition r = rendition;" should be inside the loop.