What's wrong with ``thresh_image = thresh_image > 0``?