An Albanian man was caught with sick sexual images of children after being busted during a drugs raid in Cumnock.
Selfie Senani, 27, is now awaiting deportation after downloading horrific videos and still images of children.
The footage was found on Senani's mobile phone after he jumped out of a window in a bid to escape from police.
Senani admitted having made indecent images or pseudo-images of children at an address in Car Road, Cumnock between January 5 and February 27, 2022.
Not guilty pleas were accepted to charges of possessing the same types of image between January 5 and March 5, and to possession of extreme pornographic images not involving children.
The court heard Senani was due to be deported by the Home Office once he's completed his sentence for the drugs offence.
However a judge at Ayr Sheriff Court called for reports and a risk assessment and placed him on a sex offenders register.
Senani first appeared from custody on December 8, 2022 and was remanded in custody before being fully committed and remanded again eight days later.
Procurator fiscal depute Rosslyn Walsh said: “On March 4, 2022 police officers had caused to attend [the locus].
“They entered the property shouting ‘police’ and heard people running upstairs.
“They observed the accused jumping from an upstairs window, landing on decking and causing himself an injury.
“He was arrested on a separate matter and a search was carried out on his mobile phone recovered. It was submitted to the cyber crime unit.
“There was one category A still image [the most serious type], created on the date on January 8, 2022, of a female child aged 14-16 sitting naked on the floor.
“There were 20 moving images, 14 category A, all stored in the Telegram application from January 5 to February 7, with male and female children aged two to 16.”
Prosecutors described various individual images of youngsters engaged in sexual acts.
Defence solicitor Ian Gillies told Sheriff Mhairi MacTaggart that his client was an Albanian national but had good English and was able to understand proceedings.
He said: “It is an unusual case. It was a drug search and he was arrested and held in custody.
“He appeared on indictment regarding the drugs on May 2022, and was sentenced to two years imprisonment.
"The phone wasn't analysed until September or October, then in December, another petition was served.
"Because he is an Albanian national on a drug conviction, he is being deported.
"When his sentence is complete he is being taken in a plane by officers."
Senani was returned to custody to complete his sentence and will be brought back to court at a later date.
Comments: Our rules
We want our comments to be a lively and valuable part of our community - a place where readers can debate and engage with the most important local issues. The ability to comment on our stories is a privilege, not a right, however, and that privilege may be withdrawn if it is abused or misused.
Please report any comments that break our rules.
Read the rules here