Add identity checking when deleting photos