A man who distributed 13 images of child abuse material also had thousands of images in his possession, a court has heard