functions to deal w/ kvm images