Remove reference to caption structure in replaced image