Check for parent a tag to allow for images to be within links.