I think you have part of it right, but my understanding is that the pictures involved in "revenge porn" were usually taken and sent to the person possessing them with full consent and intention. Then, the person who has them, after a breakup, spreads them around - hence the revenge.

Of course, we aren't talking about legal definitions here, so I suppose there could be multiple definitions depending on who is using the term.