More robust image importer.