axed old canvas render code