Nasa’s “X-ray eye”, designed to study distant galaxies and black holes, has turned its attention to our own star and snapped a remarkable portrait.