binarize grey wolf image with threshold x