changing canvas size on browser resize