X-ray sources based on the inverse Compton interaction between a laser and a relativistic electron beam are emerging as a promising compact alternative to synchrotron for the production of intense monochromatic and tunable radiation. The emission characteristics enable several innovative imaging techniques, including dual-energy K-edge subtraction (KES) imaging. The performance of these techniques is optimal in the case of perfectly monochromatic x-ray beams, and the implementation of KES was proven to be very effective with synchrotron radiation. Nonetheless, the features of inverse Compton scattering (ICS) sources make them good candidates for a more compact implementation of KES techniques. The energy and intensity distribution of the emitted radiation is related to the emission direction, which means different beam qualities in different spatial positions. In fact, as the polar angle increases, the average energy decreases, while the local energy bandwidth increases and the emission intensity decreases. The scope of this work is to describe the impact of the local energy distribution variations on KES imaging performance. By means of analytical simulations, the reconstructed signal, signal-to-noise ratio, and background contamination were evaluated as a function of the position of each detector pixel. The results show that KES imaging is possible with ICS x-ray beams, even if the image quality slightly degrades at the detector borders for a fixed collimation angle and, in general, as the beam divergence increases. Finally, an approach for the optimization of specific imaging tasks is proposed by considering the characteristics of a given source.