I’m not certain but I think in my jurisdiction I think distribution of CSM is the more likely charge than revenge porn.
For a 40 year old, spending 10 years in jail and the rest of your life on the sex offenders registry would be a deterrent of some kind. I ought not to do x because I don’t want to bear consequence y.
For a 12 year old, even if they understand that some behaviors have very deleterious consequences, they have no way to weigh those consequences. How long is 10 years? Would this be a bit like being sent to my room? What is a registry? Making these pictures on the computer is illegal, downloading torrents is illegal, dad downloads torrents all the time.
I’m just saying that if the objective is to avoid the harm of victims, then heavy punishments are unlikely to achieve that.