Statistics Oriented Preprocessing of Document Image