resized images to be 600x600 or smaller, keeping aspect ratio