update to canvas render.
update example to work on initial render