Fix template bug on Photos page