Support non-raw images

Use qemu-nbd to export a QEMU image as raw where needed