fix some error in create a new image process.