Fix image unpacking logic
Fix image unpacking logic

Signed-off-by: Stéphane Graber <089afc6d81f66f1168a9849e15660feae286e024@ubuntu.com>

ericsnowcurrently/lxd,atxwebs/lxd,Skarlso/lxd,jsavikko/lxd,lxc/lxd,yura-pakhuchiy/lxd,atxwebs/lxd,hallyn/lxd,techtonik/lxd,georghopp/lxd,akshaykarle/lxd,chrisglass/lxd,akshaykarle/lxd,lxc/lxd,Skarlso/lxd,Skarlso/lxd,atxwebs/lxd,hallyn/lxd,hallyn/lxd,hallyn/lxd,Malizor/lxd,dustinkirkland/lxd,Skarlso/lxd,georghopp/lxd,jsavikko/lxd,hallyn/lxd,hallyn/lxd,lxc/lxd,mjeanson/lxd,mjeanson/lxd,jsavikko/lxd,dustinkirkland/lxd,ericsnowcurrently/lxd,pcdummy/lxd,dustinkirkland/lxd,mjeanson/lxd,stgraber/lxd,Malizor/lxd,Malizor/lxd,lxc/lxd,lxc/lxd,chrisglass/lxd,pcdummy/lxd,techtonik/lxd,ollie314/lxd,ollie314/lxd,stgraber/lxd,atxwebs/lxd,techtonik/lxd,ollie314/lxd,erikmack/lxd,stgraber/lxd,erikmack/lxd,stgraber/lxd,stgraber/lxd,erikmack/lxd,yura-pakhuchiy/lxd,chrisglass/lxd,stgraber/lxd,lxc/lxd,ericsnowcurrently/lxd,pcdummy/lxd,yura-pakhuchiy/lxd,stgraber/lxd,lxc/lxd,georghopp/lxd,akshaykarle/lxd