Lähetä tietue sähköpostilla: Image-based spectral distortion correction for photon-counting x-ray detectors