A compact imaging hyperspectrometer