Reads image URLs from a MySQL database, retrieves the images, resizes them to various sizes, and uploads to Amazon S3