On Diffusion Modeling for Anomaly Detection