Fixed photo importer

Fixes #275