Don't use scriptlets. Never. Custom tags and the JSP EL have been introduced to be able to avoid scriptlets.
Use the JSP EL:
<mytags:mitem title="images/${param.someparam}-first.png"/>
And make sure that your tag's title tag is declared as accepting runtime expressions, using
<rtexprvalue>true</rtexprvalue>
in the attribute declaration of the TLD file.