[Olena-patches] milena r1658: Clean input image for extract character