tickets#show: Uniquify photos before listing them

This may resolve an issue with photos being listed incorrectly. I have no test server/test database to test this on, but I believe this should help with the issue.