Updated the canvas animation