fix deletion of photo work on amazon s3 storage backand