Final implementation of vmimage tool