Segmentation of Page Images having Artifacts of Photocopying and Scanning