Fix the way to get vm image.