update page.php with featured image function