Image Preprocessing For Text Recognition