Fixes create_vm_image and update_vm_image.

Fix for https://github.com/Azure/azure-sdk-for-python/issues/244