Display Authors avatars when more than one author

Here we go, found a nice thread which gave some answers and developed this which works a treat:

if ( class_exists( 'coauthors_plus' ) ) {
    $co_authors = get_coauthors();
    foreach ( $co_authors as $key => $co_author ) {
        $co_author_classes = array(
            'co-author-wrap',
            'co-author-number-' . ( $key + 1 ),
        );
        echo '<div class="' . implode( ' ', $co_author_classes ) . '"><a href="' . get_author_posts_url($co_author->ID) . '" style="color:#ffffff;">';
        echo userphoto_thumbnail( $co_author );
        echo '</a></div>';
    }
}