Fixed path issues and resolved crash with PhotoView