Fix bug in image importer.