Fixed SVG coordinate parsing to remove NaN stuff