resized images to 500 by 500 to aws