Added ability to store images on s3.