Drivers and template renderers for thermal printers