A swimming instructor has been jailed for secretly filming women in schools and leisure centres across eastern Scotland.
Craig Brown, 31, also admitted having child pornography at his Dundee home.
Brown admitted using his mobile phone to covertly take pictures and make videos of unsuspecting women in at least five locations.
Sheriff Lindsay Foulis told Brown he had committed a "significant breach of trust" and jailed him for two years.
Brown was also placed on the sex offenders register for 10 years and banned from entering any unisex or female changing room in Scotland for seven years.
Perth Sheriff Court heard police discovered hundreds of images he had recorded while working for Dundee City Council over a two-year period.
Brown was caught on 7 February last year when a swimmer spotted his phone under her cubicle door. The court heard she dragged him out of the adjacent cubicle and forced him to hand over his phone.
Police launched an investigation, studying pools and schools where he was known to have worked to see if they matched the backgrounds on the images found on his phone.
Craigie, Menzieshill and St John's RC High Schools in Dundee, Perth Leisure Pool and the Red Lion Caravan Park in Arbroath were all identified from the footage.
Brown, of Balunie Crescent, Dundee, admitted taking all of the footage and causing "distress" to numerous women, but denied it was to satisfy his sexual interest.
He previously told police he had been taking images covertly for almost a decade.
Brown was found guilty of seven charges relating to covert filming of females in changing rooms between 26 April 2010 and 8 February 2012.
He also admitted that he took, or permitted to be taken, indecent photographs or pseudo-photographs of children at his home.
Jailing Brown for two years, Sheriff Foulis told him: "The offences of which you have been convicted are serious. They are serious offences because of the period covered.
"It is not simply one location, it is five - Perth Leisure Pool, Craigie High, Menzieshill High, St John's and the Red Lion Caravan park. There were a number of images taken of numerous people.
"There is also the fact that most, if not all, of these instances were in the course of your employment and accordingly, a significant breach of trust was involved.
"In the circumstances, because of the gravity of the offences you committed I consider a custodial disposal is the only appropriate one to make."