Added deletion functionality to photo detail controller.