Made canvas height and width auto adjust on resize.
Now we no longer need to set canvas dimensions.