First offender Kieran Rodriguez, 21 was found by police making suicide threats, after the Arbroath resident downloaded more than 1,000 images of children.
Rodriguez appeared on indictment at Forfar Sheriff Court
The fiscal said when police arrived at the house of Rodriguez, he pulled out a laptop from behind furniture and said: “I’ll show you. I have a few hundred images of children on my laptop.”
The password to a computer was given
Rodriguez was taken to the Mulberry Unit at Stracathro Hospital near Brechin for observation and was left in the care of staff there. The accused was detained by police after being released from hospital.
Ms Drummond added: “The accused stated they had been downloading images for a few years, in the hope he would be imprisoned… The accused wanted a roof over his head.”
Police found a total of 1,155 indecent images across the scale of seriousness
Sheriff di Emidio deferred sentence to May 28 for a psychological assessment as well as criminal justice social work reports.
Rodriguez, of Newton Avenue, will attend the Tay Project and be subject to notification requirements of the sex offenders register in the meantime.
The Crown moved for forfeiture of the laptop, an Apple Mac, memory stick, PC tower and a power cable, and this was continued for further investigation.