fixed parser to be able to use paths, and turned picture white

still need to clean up the code, free memory, close files, etc.
closed files and freed memory
bad code