adding the tmp file to hold images before beig copied to S3