Hook up canvas resizing