added component-did-mount callback to render method for canvas