Added ability to pass images from s3.