refactor work with virtual machine images