adding image thresholding lib