Adding display featured image function to function.php