Added S3 support for images.