thresholding: binary images are now shown as white on black