debug qcow2 image function