I took a photo of my friend in the locker room while he was butt-ass naked.
That's not cool. Why did you do that?
He wanted to take my camera and I got my revenge.
Taking nude photos without consent is awful. It's probably illegal, too. Revenge isn't often worth it.
He winced in pain when he saw how awful he looked.
Taking someone's picture like could definitely get you in legal trouble. It's an invasion of privacy, and morally, just plain wrong. He didn't steal anything, and if you're that upset that he even had the intent, talk to him about how much it upset you.