Adding more flexible featured image code