fix some bug on make new image, both for clone and update.