resize canvas with window