Scaling Properties of Diffusion Models for Perceptual Tasks