Image generation with shortest path diffusion