debugging delete photo