fixed minus bug when photo filenames contain end-bracket ]