fix a bug when new generated VM name from Image Name, instead of img ID.