Scale correct but mouse position is off.
Working for rectangular canvas.
Working for rectangular canvas, drawing red dot.
Refinement of the canvas dimensions.