Adding support for vbox and fixing imageFile method