working on getting delete photo function working (problem is getting the photo id outside of the foreach)