Rework HtmlCanvasRenderer to be similar to BarcodeRenderer