If the code you posted (which I haven’t tested) prints each user’s role, then can’t you just modify it like this?
<?php
global $wp_roles;
foreach ( $wp_roles->role_names as $role => $name ) :
if ( current_user_can( $role ) && $role == 'gold' ) {
echo '<img src="/gold_member.png" alt="" />';
break;
}
endforeach;
?>
That way, it doesn’t print anything unless $role is equal to ‘gold’. And you can make the ‘echo’ statement print whatever you want. In the example above, it prints out an image tag, but you could have it print a CSS class name or whatever else you want.