Made the photoViewDelegate optional