Yes, it's wrong to post or share those intimate photos especially in these circumstances. 

That said, it's a monumentally stupid idea to take or allow those photos in the first place. i can't believe that there are still people so naive to think those photos will never see the light of day. Once posted on the internet, they live forever unlike most relationships.