The boys had used an artificial intelligence tool to superimpose real photos of girls' faces onto sexually explicit images.