Functionality for storing imgs on s3