Drivers and templates for thermal printers