I could be mistaken, but I think we have a set of util functions for ``qemu-img`` stuff.