Added canvas resizing upon window resize.