Fixes in image thread - compatibile with debian7 libvirt