sex offender allowed to view child porn in jail