added if else statement for hero featured image