prevent repeat viewing of the same photo