integrate the screenshot loop into the qemu managment loop