Fix for spaces in photo filenames. Closes #368.