I am using Toolkit to randomly display one product on the storefront from the "featured" category. It works to display the product name and link, but the product image does not show up. Would like it to use image machine to make the product image 175x175. Also want to wrap the link to the product page around the image as well as around the product name. Here is the code. The second half is what needs to be fixed. Help?
<div class="sfnt-featured-product">
<mvt:item name="toolkit" param="sassign|cat_code|featured" />
<mvt:item name="toolkit" param="randomcat|pcount|g.cat_code|1" />
<mvt:if expr="pcount GT 0">
<mvt:foreach iterator="sub_product" array="sub_products">
<a href="&mvt:global:secure_sessionurl;Screen=PROD&Pr oduct_Code=&mvta:sub_product:code;">
&mvt:sub_product:name;</a>
<mvt:if expr="NOT ISNULL l.settings:sub_product:thumbnail">
<img src="&mvt:sub_product:thumbnail;" border="0">
<a href="&mvte:product:link;"><img id="sfnt-featured_&mvte:product:id;" src="graphics/en-US/cssui/blank.gif" alt="&mvte:product:name;" /></a>
<mvt:item name="category_listing_imagemachine" param="body:product:id" />
<div class="clear product-image-margin"></div>
<div class="product-name"><a href="&mvte:product:link;">&mvt:product:name;</a></div>
</mvt:if>
</mvt:foreach>
</mvt:if>
</div>
<div class="sfnt-featured-product">
<mvt:item name="toolkit" param="sassign|cat_code|featured" />
<mvt:item name="toolkit" param="randomcat|pcount|g.cat_code|1" />
<mvt:if expr="pcount GT 0">
<mvt:foreach iterator="sub_product" array="sub_products">
<a href="&mvt:global:secure_sessionurl;Screen=PROD&Pr oduct_Code=&mvta:sub_product:code;">
&mvt:sub_product:name;</a>
<mvt:if expr="NOT ISNULL l.settings:sub_product:thumbnail">
<img src="&mvt:sub_product:thumbnail;" border="0">
<a href="&mvte:product:link;"><img id="sfnt-featured_&mvte:product:id;" src="graphics/en-US/cssui/blank.gif" alt="&mvte:product:name;" /></a>
<mvt:item name="category_listing_imagemachine" param="body:product:id" />
<div class="clear product-image-margin"></div>
<div class="product-name"><a href="&mvte:product:link;">&mvt:product:name;</a></div>
</mvt:if>
</mvt:foreach>
</mvt:if>
</div>