export setCanvasSize to Module object

It's useful to export setCanvasSize so users can update the canvas size manually. This is useful if say, you'd like to resize the canvas as the window (or some other parent element) resizes.