Added function for thresholding image