2 ways I know of.
click the macro icon next to its name edit box in the UI and you will have the option for custom icon.
Or
The first line of your macro use. /macroicon "spellnamehere" quotes needed for more than one word. This will change the icon to the ability named with cd spiral and such