Diffusion Model As Representation Learner Dictionary