added a receiver function to delete the image from S3 as well