# Newenvironment and floating figures

I want to create an environment for a list of items, that should look like this for each item:

 Name     Image
.......  Image
..............
..............


with this environment \begin{cuitem}{Name} ...... \end{cuitem}

and this definition:

\newenvironment{cuitem}[1]
{
\textbf{#1}
\input{imagefile}
}{
}


where imagefile is a .tex that contains a tikzpicture wrapped inside a \begin{wrapfigure}{r}{0.5\textwidth}.

This works fine if I use only one of these cuitem. As soon as I use more than one they start being rendered into each other with the text overlaying the figure. What is the correct way to ensure the separation of two consecutive environments and is the wrapfigure the best solution for this problem?

-
It's hard to wrap around figures when lists are involved. The floatflt package has a workaround which uses a command \fltitem instead of \item.