added c->Update() for automatic update of the canvas.