call to tesseract working, printing broken