Understanding Image Generation with Diffusion