Interpreting and Improving Diffusion Models Using the Euclidean Distance Function