Fixed setup of canvas size
Can programatically replace and restore dom element with canvas in prep for animation