Added a fugly dialog to threshold. Inverter works for colours.