A Scottish pervert is facing a jail sentence after he was caught with more than 20,000 child abuse images.
Kevin Kenny, 46, downloaded the huge haul of pictures and videos to three devices over a period of six years at his home in Edinburgh.
Kenny was found in possession of the horrific material depicting male and female children when police raided his home last year.
Read more - Tragedy as young Edinburgh man, 21, dies in horror crash with car on busy road
He appeared at Edinburgh Sheriff Court on Tuesday where he admitted the possessing the images between February 2016 and September last year.
Prosecutor Matthew Millar told the court police received intelligence indecent images of children were being accessed at Kenny’s home he shares with his mother at the capital’s Murrayfield area.
The court was told police officers raided the property at around 9am on September 9 last year.
Mr Millar said a mobile phone and a laptop were voluntarily handed over by Kenny but officers also discovered an electronic tablet that had been hidden down the side of a bed.
Sign up for Edinburgh Live newsletters for more headlines straight to your inbox
A subsequent Police Scotland cyber crime report showed Kenny had downloaded a total of 24,464 images and videos depicting the sexual abuse of young children to all three devices.
The court heard the depraved images featured both male and female children and contained hundreds rated at Category A - the most depraved end of the spectrum.
The Crown’s motion for forfeiture of all three devices was granted by Sheriff Wendy Sheehan. Sheriff Sheehan placed Kenny on the Sex Offenders Register on an interim basis and released him on bail.
Sentence was deferred to next month for a social work report and a risk assessment to be prepared.
Kenny pleaded guilty to possessing indecent images of children at his home in Edinburgh between February 3, 2016 and September 9 last year.