I used this expecting to get the image:
Code:
...
<queryparam paramname="@CatID" paramtype="runtime" requestparamname="CatID" sqlDataType="int" defvalue="0" validationpattern="" />
...
...
...
<div align="left"><img border="0" src="/images/category/medium/{CatID}.jpg"></img></div>
-- and --
<div align="left"><img border="0" src="/images/category/medium/{categoryID}.jpg"></img></div>
but it returns an empty string. I used this code in another .config template for products and it worked as expected.