Trying to use figure inside an Exercise environment (exercise.sty) gives me "LaTeX Error: Not in outer par mode."
Example:
\documentclass{article}
\usepackage[]{exercise}
\begin{document}
\begin{Exercise}[title={foo}, label=ex1]
A tough question.
\end{Exercise}
\begin{Answer}[ref={ex1}]
A smart answer.
\begin{figure}[htp]
\centering
\includegraphics[totalheight=0.2\textheight]{couetteFlowFig1.png}
\label{fig:ex1}
\end{figure}
\end{Answer}
\end{document}
I see in Is it possible to use the figure environment with the standalone package? that there was a similar problem with a different package, and that limitation in the package was eventually handled. It appears the same limitation exists in the exercise environment. Is there a work around that allows for inclusion of a figure with that package, or a different way of including a figure when using this package?

mwenow @ Werner. I like it as it will save me from typing all those details regarding rectangular block. – May 11 '12 at 05:54\newcommand{\imageCentered}[4]{% \begin{center}% \captionsetup{type=figure}% \includegraphics[totalheight=#4\textheight]{#1}% \caption{#2}% \label{#3}% \end{center}% }
– Peeter Joot May 11 '12 at 06:08