Added code to upload image to S3. It seems to be working.