SWT preprocessing for OCR