Add utilities to get the position of mouse on the canvas. Code coming from noVNC
Support for scaling