fix some image insert issue