add delete photo function