Image Thresholding using Histogram Analysis