Fix the bug when write identify code image.