Changed featured image function to run only on portfolio type.