Major refactor to keep from stomping on existing data when updating an image, link wrapping the image, or the caption.
Remove caption elements if the caption is blanked out.