fixes photo importer and tests fix

Fixes #198