Processing of electromagnetic radiation is described, said incoming electromagnetic radiation comprising radiation in a first wavelength interval and a plurality of spatial frequencies. An arrangement comprises a focusing arrangement for focusing the incoming electromagnetic radiation, a first cavity configured to comprise an intra cavity laser beam, a nonlinear crystal arranged in the first cavity such that it is capable of receiving the focused electromagnetic radiation and, in dependence on the spatial overlap between the focused electromagnetic radiation and the intra-cavity laser beam, by interaction with the intra-cavity laser beam provide processed electromagnetic radiation, said processed electromagnetic radiation comprising radiation in a second wavelength interval and at least a subset of said plurality of spatial frequencies. In other words, such an arrangement is capable of enabling imaging, e.g. by utilizing a detector that is sensitive in the second wavelength interval, a source of radiation that emits in a first wavelength interval and comprising several spatial frequencies. Furthermore, such arrangement is capable of improving the spatial quality of the incoming radiation.