refactors OCRTesseract interface