Fix Photos app keeps failing or freezing when importing photos