add canvas size resizing on window resize #1