\documentclass{article}
\usepackage[demo]{graphicx} 
\usepackage{xepersian}
\begin{document}
\begin{figure}
\caption{این یک \protect\includegraphics[width=1cm,height=1cm]{myfig} است.}
\end{figure}
\end{document}