Resize canvas with window.