resize canvas on window resize (req for factoid)