allow images to be resized on load if larger than a particular size