wraps an img in anchor from sibling, and removes the anchor