images: Move the whole tar-ing logic into images.py

Signed-off-by: Pavel Emelyanov <xemul@parallels.com>
images: Address wdir/imgdir by index

Signed-off-by: Pavel Emelyanov <xemul@parallels.com>