Added the base thermal printer class