Transverse profile imager for ultrabright electron beams