templatized handling of graphics and video libvirt XML