Show Featured Image in Post Single View

Use the following snippet to show a posts featured image in the post single view (using the Genesis framework):

// Show featured image in single post
add_action('genesis_entry_content', 'wpkb_single_post_featured_image', 1);
function wpkb_single_post_featured_image()
{
    if (!is_singular('post')) {
        return;
    }

    $img = genesis_get_image(array(
        'format' => 'html',
        'size' => genesis_get_option('image_size'),
        'attr' => array('class' => 'alignright post-image entry-image'), ));

    echo $img;
}