Partially switched to new X3Canvas control for rendering.