Added check for w= query param when extracting suitable featured image