Added canvas redrawing