put tesseract functionality in OCR class