moved OCRTask class to it's own file