Fixed issue with resizing window (canvas wasn't getting updated)