Added delete function to photos