Limit image resizing.