Adding custom HTML to each profile group tab

Hopefully someone can help. I am looking to add a different image banner to each of the profile group tabs I have on my Buddypress site. I have identifed the profile-loop.php as the file I need to include this on but when I try the following code it breaks the profile section of my site:

<?php if ( bp_the_profile_group_name() == 'About') ) : ?>


<?php endif; ?>

Can anyone suggest how I might target the About group on my site and insert custom HTML?