Moved "meat" of photo importer to a module.