The Ion Mass Imager on the Planet-B spacecraft