A judge said as a grandfather himself he found it very difficult to understand how anyone could bring themselves to view such material