Further to this, if you are using the code to show the group title and group icon, but only want it to show the group icon and NOT the group title in words then use the following code:
{{$count=0;}}
{{foreach $users as $user}}
{{if $count%4 == 0}}
<div class='ipsGrid ipsGrid_collapsePhone cStaffDirectory_blocks'>
{{endif}}
<div class='ipsGrid_span3 ipsType_center ipsAreaBackground_light ipsPad'>
{template="userPhoto" app="core" group="global" params="$user->member(), 'small'"}
<h3 class='ipsType_sectionHead'>
{{if \IPS\Member::loggedIn()->language()->checkKeyExists( "core_staff_directory_name_{$user->id}" ) }}
{{if member.canAccessModule( \IPS\Application\Module::get( 'core', 'members' ) )}}
<a href='{$user->member()->url()}'>{lang="core_staff_directory_name_{$user->id}" escape="true"}</a>
{{else}}
{lang="core_staff_directory_name_{$user->id}" escape="true"}
{{endif}}
{{else}}
{$user->member()->link()|raw}
{{endif}}
</h3>
<p class='ipsType_reset ipsType_normal ipsType_light'>
<li style="list-style:none" class='ipsResponsive_hidePhone'><img src='{file="$user->member()->group['g_icon']" extension="core_Theme"}' alt='' class='cAuthorGroupIcon'></li>
</p>
</div>
{{$count++;}}
{{if $count%4 == 0}}
</div>
<br>
{{endif}}
{{endforeach}}
{{if $count%4 != 0}}
</div>
<br>
{{endif}}