Avoid expanding images that are already wrapped in links