Text this: Pattern recongnition and image preprocessing