How to set the image of the DImageButton to a model

How do you set the image of the DImageButton to a model? For example, “models/Weapons/W_pistol.mdl”

EDIT: Nevermind I used a spawnicon