Added images to posts and updated code in functions.php