[Olena-patches] r2610: Improve OCR preprocessing