Former teacher sentenced to 39 years in catfishing child pornography scheme