Fixes create_vm_image and update_vm_image.