fixes filepath bug and displays error when texture-file cannot be found