Change to use SVG instead of canvas so that elements can be shown and hidden