only use keepalive in Tree.draw if canvas has been created locally