Handled canvas resize on window resize. (Maybe scraped later)