added delete photo function