Fixed potrace parsing and dimension handling
Tidied up some parsing code