creates and render canvas element