Fixed up the canvas rendering to be fast.