If it was the U.S., I would say sue the PD for a violation of civil rights (4th amendment). Taking photos is the equivalent of a search you did not consent to and a very good argument can be made that the muffler is not visible to the plain eye and that the cop had to cross a threshold that probable cause for a traffic stop did not allow him to.
I'm not a lawyer but I do have two of them in the family and I have stayed at a Holiday Inn Express.
If this had been in the US and assuming there was enough probable cause to pull him over for exhaust noise in the first place, then there certainly was enough probable cause to look under the car and take pictures.
Besides, unlike the US, probable cause is not a requirement for traffic stops in Canada. They treat driving as a privilege not a right (actually it's a privilege in the US as well but not to the same extent) so a driver is expected to put up with traffic stops for everyone's "safety". That's why they can do random drunk driving checkpoints that would be impossible (lack of probable cause) in the States.