Add Amazon S3 upload and image optimization