We demonstrate the possibility to control the spatial mode of a narrow-linewidth, continuous-wave, infrared radiation beam generated by difference frequency in a periodically poled crystal. This can be achieved by acting directly on a few experimental parameters. We show that hollow beams can be generated. A numerical routine has been developed and results agree with experimental observations, without requiring any free parameters. The relevance of these results for high-resolution spectroscopy and atom manipulation is discussed.