Convert an image to ESCPOS commands for thermal receipt printers