adding icons to menu items in interface builder

how do you add icons to menu items in interface builder?

I think you do it programmatically. Something as:

set image of menu item "foo" of sub menu of menu item "bar" of menu 1 to (load image alias "path:to:image.gif")