canvas resizes when browser window is resized, fixed pause button