A Scottish pensioner caught with over 100,000 child abuse images has avoided jail due to his "generally good character".