A pervert who set up a hidden camera to film a teenage girl naked in her bedroom was caught when she visited his house and borrowed his laptop as an adult.
William Geddes was rumbled when the woman spotted a folder on the computer with her name.
When she opened it she found more than 30 videos of her dressing and undressing.
The stunned woman, who cannot be named, fled the house in Carnoustie with the laptop.
Geddes later tracked her to a supermarket and tried to run off with the computer – but was stopped by the woman’s partner.
Fiscal depute Stewart Duncan told Dundee Sheriff Court the woman attended the house and was using the laptop when she noticed a folder containing a number of video files marked with her name.
He said: “She opened one . . . and saw it was of him walking into the room holding a recording device and putting it on a shelf.
“She saw herself entering from the bathroom wearing a towel then taking it off, leaving herself naked.”
Geddes, of Braehead Drive, Carnoustie, pleaded guilty on indictment to charges under the Sexual Offences Scotland Act and to possessing indecent images of children between December 2010 and May 2014.
Sheriff Tom Hughes deferred sentence until next month for reports and released him on bail. Geddes was placed on the sex offenders register.