small changes to image importer