Fixed uploading of images to aws