Improve setUpCanvas routine to cut down on canvas reinitialization