Remaking the canvas with new data implemented