Added a delete function to delete a photo