Reset when canvas was attached to the DOM for non-excanvas