Wrong Image on Custom Post Types

These forums are for general discussion on WordPress, CSS and design and site feedback. Official support for StudioPress themes is offered exclusively through the My StudioPress member area. Responses in this forum are not guaranteed. Please note that this forum will require a new username, separate from the one used for My.StudioPress.

I wrote a custom post type to render display of member details captured through a gravity form. The thumbnails in archive listings are properly choosing the featured image but the output on the single page is taking the most recently uploaded image. I'm a little baffled by this so I hope someone can help.

Here is the code for the custom post type

/*
* Single Post Template: WSG Members Single
*/

//remove_action('genesis_post_title', 'genesis_do_post_title');//We're not using the title for this post type
remove_action('genesis_loop', 'genesis_do_loop');//remove genesis loop
add_action('genesis_loop', 'wsg_members_single_loop');//add the wsg members single loop

// This is the most important part! Checks to see if the post has a Post Thumbnail assigned to it. You can delete the if conditional if you want and assume that there will always be a thumbnail
if ( has_post_thumbnail() ) {
printf( '<a title="%s" href="%s">%s</a>', get_permalink(), the_title_attribute( 'echo=0' ), genesis_get_image( array( 'size' => $size, 'attr' => $default_attr ) ) );
}