Hi,
I've implemented a way to show not only text buttons in titlebars but also image buttons.
I attach a patch with the neccessary code, basically some extensions to XMonad.Util.XUtils and XMonad.Layout.Decoration, and a theme which uses the code: XMonad.Layout.ImageButtonDecoration.
Thanks in advance.