ModelCanvas: Use local createImage() method

Don't use the app variable if it's not necessarily needed
ModelCanvas: Extracted MouseTracker class