[libvirt] [PATCH sandbox v5 07/20] Image: Refactor create function