storing image locally and uploading a txt to s3