Fix fail to add option bug if img tag contain other data tags