added canvas resizing on window resize