fix up PILImageImporter to handle 2D images