update canvaswrapper