only resize images if larger than