avoiding multiple photo triggering