fix photo deletion