Limiting the maximum size of displayed images.