duplicate photo fix and other bug fix
bug fixes