Pattern Recognition and Image Preprocessing