Update path.class.js

Still fix path positioning, now it works differently.
I'm sure there is way to eliminate all this this.width/2 .
For now it looks like it works even with the one that where failing previously.