A paedophile who was caught with images of children as young as four suffering sickening sexual abuse has been finding prison "difficult", a court was told.