Fix the bug in update_img.sh