A Core Image filter implementing 'threshold'