fixing duplicate photo