Hacked in a drawCanvas functiong