Whaaaaaaa? How should it be legal to imagine minors naked? And in this case there is proof in the form of the child pornography they distributed.
Dicey grounds here, but it should be legal to imagine _anything_. Thoughtcrimes are always wrong, and there never should be any law on what you can think or imagine.