photo scan: support non-unique labels