Fixes create_vm_image and update_vm_image.
Merge pull request #247 from huguesv/vmimagefix

Fixes create_vm_image and update_vm_image.