Why start drawing in different position from where I clicked

Potential solution: