Update canvaswidget.cpp