able to resize canvas on window resize