I currently have a large document that uses dingbats in section and subsection names to denote specific kinds of sections, currently using Pifont and a macro-ised ding command, for ease of changing the icon if required. I'm wondering if it's possible to use a PNG image as a custom dingbat for this purpose. An abridged, slimmed version of my code is shown below; the real document uses far more packages than this.
\documentclass[a4paper]{book}
\usepackage{fontspec}
\usepackage{pifont}
\usepackage{lipsum}
\usepackage{titlesec}
%
\setmainfont[Ligatures=TeX]{Caladea}
%
\newcommand*{\wc}{\ding{71} }
%
\begin{document}
\section*{Section Foo Here}
\subsection*{\wc Subsection Bar Here}
\subsection*{\wc Subsection Foobar Here}
\lipsum
\end{document}
\newcommand*{\wc}{\includegraphics[height=1em]{myimage.png}}
?graphicx
package) this is no different from any other image inclusion is it?