A threshold imaging Cherenkov detector with CsI photocathodes