fix importing photos