added thresholding in the image_pub* files.