Minor fix for Image#threshold()