Get wordpress featured image

<?php
if (has_post_thumbnail( $post->ID ) ){
$image = wp_get_attachment_image_src( get_post_thumbnail_id( $post->ID ), 'full' );
?>
<img src="<?php echo $image[0]; ?>" alt="<?php echo $post->post_title; ?>" />
<?php
}else{
?>
<img src="<?php echo get_template_directory_uri(); ?>/images/banner/default-banner.jpg" alt="" />
<?php
}
?>


get featured image
 
if (has_post_thumbnail( $post->ID ) ){
   echo wp_get_attachment_image( get_post_thumbnail_id(), 'full');
}