switch ($propInfo['PROPERTY_TYPE'])
{
case Iblock\PropertyTable::TYPE_ELEMENT:
$showMode = 'PICT';
break;
case Iblock\PropertyTable::TYPE_LIST:
$showMode = 'TEXT';
break;
case Iblock\PropertyTable::TYPE_STRING:
$showMode = (isset($fieldsList['UF_FILE']) ? 'PICT' : 'TEXT');
break;
}
$photo = CFile::ResizeImageGet($arItem['PREVIEW_PICTURE'], array('width'=>85, 'height'=>82), BX_RESIZE_IMAGE_PROPORTIONAL, true, array());