[Olena-patches] r2797: Cleanup OCR preprocessing