check for image and video elements before inlining stories