Resizes canvas on window resize