Make x,y origin from center of canvas

Optimization of the path drawing tool.