A man found with more than 70 images and videos of children being sexually abused has narrowly avoided a prison sentence.