There is provided a method of image reconstruction based on energy-resolved image data from a photon-counting multi-bin detector or an intermediate storage. The method comprises processing (S1) the energy-resolved image data by performing at least two separate basis decompositions using different number of basis functions for modeling linear attenuation, wherein a first basis decomposition is performed using a first smaller set of basis functions to obtain at least one first basis image representation, and wherein a second basis decomposition is performed using a second larger set of basis functions to obtain at least one second basis image representation. The method also comprises reconstructing a first image based on said at least one first basis image representation obtained from the first basis decomposition, and combining the first image with information representative of said at least one second basis image representation.