Set canvas sizes based on main and mouse scales.

Scales are now controlled by JS instead of derived from the DOM.