Stable generative modeling using diffusion maps