add deletePhoto functionality