# Horizontal align jpg icon in block title

I am new to beamer. I need to put an icon in the block environment title on the right side. My code looks like this :

\begin{exampleblock}
{
\includegraphics[width=10pt]{frog.jpg} Example
}


and my block then looks like this :

I need the image to be on the right side (not the left).

I tried using\includegraphics[width=10pt,left] but got an error :

Package xkeyval Error: 'left' undefined in families 'Gin'.

I also tried \begin{flushright} \includegraphics[.. \end{flushright} and I got

As you can see there is some kind of margin that I am unable to get rid of. I need it to be on the same line.

• Do the \begin{exampleblock} Example\hfill\includegraphics[width=10pt]{frog.jpg} \end{examplebox} help? – Zarko Feb 27 '16 at 17:26
• L l ll rll pm I l l lot u l l nmy p o – M.C. Sep 23 '16 at 20:36

\begin{exampleblock}