Great! That code can even be simplified a bit, because the category image name is available directly in that file as $box_categories_array[$i]['image'] instead of having to run around looking it up.
So instead of
PHP Code:
// for adding image beside category name
// categories_image
$categorySelect = str_replace('cPath=','',$box_categories_array[$i]['path']);
$categories_image = zen_get_categories_image($categorySelect);
$myCategoryImage = zen_image(DIR_WS_IMAGES . $categories_image, '', '50', '75');
// categories_image
$content .= $myCategoryImage;
// end adding image code
you can use
PHP Code:
// for adding image beside category name
// categories_image
$myCategoryImage = zen_image(DIR_WS_IMAGES . $box_categories_array[$i]['image'], '', '50', '75');
// categories_image
$content .= $myCategoryImage;
// end adding image code