Mitch Stein, a gay television producer living with his partner and two daughters in Pomona, Calif., had forgotten about some "fun" photos that he had posted online years ago.
One was a photo of the 36-year-old eating a corn dog at a fair and the other was a Halloween shot jokingly surrounded by drag queens.
But he believes those photos cost him his job last August as an assistant boys' water polo and swim coach at the Charter Oak Unified School District, where his 15-year-old biological daughter goes to school and is on the girls' team.
"I feel like they are fun photos taken with friends on my personal time, years before I even worked at Charter Oak," he told ABCNews.com.
Now, he claims in a wrongful termination lawsuit filed in Los Angeles County Superior Court this week, that he was fired because he was gay.
Stein said he had tried mediation, but the school did not agree.
"Obviously, my daughter goes to the school and I would rather their funds be used for something else," he said. "But I should have the same rights as any other parent."
The school district argues that the "sexual content" of the photos was offensive.
"Since the case is in litigation, I cannot comment except to say, as I have done in the past, that Mitch Stein was not terminated due to his sexual orientation," said Charter Oak Unified Superintendent Mike Hendricks in an email.
Stein has asked for an undetermined amount of punitive damages, a clean personnel record and his old job back, according to the lawsuit.
According to Stein, the Facebook and MySpace photos were sent to school principal Kathleen Wiard anonymously. He said he had never personally met her until the day she called him into the office to fire him, calling the photos "obscene."
He also said her questioning suggested that she falsely equated homosexuality with pedophilia.
ABCNews.com obtained the photos. One, showed Stein fully clothed being lifted up by five men in drag. In the other, he had an open mouth and was ready to eat a corn dog.
"As we know from Michelle Bachman, the ones of eating a hot dog make people look ridiculous," said Stein's Los Angeles lawyer, Brad Kane.
"My client was not immediately aware they were on the Internet," said Kane.
"They were years old. But taking them down was not sufficient. They terminated him because they didn't want 'people like you close to children.' What does that say?"
Kane said a local reporter had found a photo of a "drunk straight teacher" online and brought it to the attention of the school, but he was not disciplined.
The school has no policy on private posting of photos online, according to Kane. The employment application Stein signed also does not mention "sexual orientation," which is a protected class.
Stein said he was "openly gay" when he was hired by the district.
"I didn't say that in my job interview," he said. "I am open, but I don't walk up to people. It's a little irritating when you have the adjective in front of you -- 'gay coach' and 'gay father.'"
Coach 'Standing Up' for Other LGBT Teachers
Stein used to play water polo for Charter Oak and said he was asked by the head coach to help out in May 2011. He only makes $2,500 a term and said the lawsuit is "not about the money" but standing up for his rights and those of other LGBT teachers and students at the school.
Stein said his immediate reaction was to leave the school, but his teenage daughter Devynn talked him out of it.
"She said, 'No, Dad. If we leave, they have won,'" said Stein. "She taught me a lesson."
Since then Stein has received support from others at the school.
"One teacher actually apologized to me," he said. "He worked for the same school district in 2003 and had similar problems and knew he was being treated differently because he was gay. Instead of standing up and fighting, he had left."
According to the Los Angeles Times, which first reported the story, that male teacher filed a sexual orientation discrimination complaint saying he was harassed by an administrator.
The district said it did a "thorough investigation," according to the Times, and there was nothing to substantiate the claim
The day the lawsuit was filed, students and parents protested outside the court on behalf of Stein, according to his attorney Brad Kane.
A new Pew Research Center poll released this week found a sharp increase in support for LGBT teachers.
"While just 25 years ago, 51 percent of Americans said school boards should be able to fire teachers purely based on their sexual orientation, that number has dropped to just 21 percent today," said advocacy the group, Think Progress.
Gay rights groups like GLAAD were supportive of Stein.
"It's time school administrators go on record and answer the question: Would this even be an issue if Mr. Stein were straight?" said GLAAD President Herndon Graddick. "Keeping homophobia out of America's classrooms and creating safe learning environments for students should be the school's focus, not decades-old photos."
Stein said that he has been a good coach, even refusing to lead the girls' water polo team to avoid accusations that he favored his daughter who is one of the players. He said he had never been disciplined before and never had an opportunity to take down the photos or address the real issues behind the firing.
Despite losing the coaching position, Stein still goes to practices every day and was just elected president of the booster club, helping the team raise $15,000 this year for the aquatic program.
"Right now, with the Republican primary and so many people in the news saying we have to protect the family, no one sat there and said how it would affect my daughter and my family," said Stein, choking up on the phone.
He and his partner Hugo Horta have had a tumultuous time in the last few months. His adopted 7-week old Tuolumne Horta-Stein, the daughter of a drug-addicted mother, nearly died at birth and has just arrived home from the hospital.
But that won't deter him from seeking justice from the school.
"We have these laws in California and if no one enacts those laws, things are not going to change," said Stein. "The social climate in that district is toxic. Gay students have come to me and said they are afraid if they do it to me, they can do it to them. I need to set an example."