Resize images to 1000 by 1000 pixels at most