/macroicon "Ability Name"

with capitals and quotation marks.. the picture will still show as an M or whatever you set it to on the macro window. but will change to the macro icon when you place it on your hotbar..

/micon also works

goes on the first line of your macro not the title bar