Hi,
You need to use that after some helper has populated 'resources' View variable:
if( osc_count_item_resources() > 0 ) {
echo osc_resource_url();
[loop to retrieve images]
OR, if you need it before that, just include this anywhere on item.php:
if( osc_count_item_resources() > 0 ) echo osc_resource_url();
Regards