The former Denton ISD administrator who wrote a controversial children's book that featured a cartoon frequently associated with white supremacists has admitted to copyright infringement for his use of the Pepe the Frog character.

Eric Hauser, who resigned last week after he was removed from his position as assistant principal at Rodriguez Middle School in Oak Point, published The Adventures of Pepe and Pede on Amazon on Aug. 1.

Matt Furie, the artist who created the original Pepe for a comic book in 2006, threatened to sue Hauser unless he shut down distribution of the book, which had been picked up by Post Hill Press, the Denton Record-Chronicle reported.

Amazon listed the book as "currently unavailable" Monday night.

Hauser admitted to infringing on the copyright, and a settlement was negotiated in a few days, Motherboard reported.

Louis Tompros and Don Steinberg, Furie's attorneys with the law firm WilmerHale, said Hauser will have to donate all $1,521.54 in sales profits to the Council on American-Islamic Relations, according to the website.

"Furie wants one thing to be clear: Pepe the Frog does not belong to the alt-right," the lawyers' statement said.

Hauser told The Dallas Morning News he knew Pepe was a conservative meme, but not a white supremacist one. He said he wrote the story to fill a void in conservative children's books. He said his book featured themes of nationalism, unity and truth.

The cartoon frog has been used frequently in recent years by the "alt-right," a far right movement that combines white nationalism, racism and populism. The book includes words included in the alt-right lingo, such as "kek."

Pepe and Pede has also been perceived by many to be anti-Muslim, with a bearded alligator villain named Alkah.

Mohammed Fouad, the imam at the Denton Islamic Center, said his 11-year-old daughter immediately associated the alligator with Allah, the Muslim name for God.

"If a child reads this, what will they think?" Fouad told the Denton Record-Chronicle. "To take these ideals into a classroom is wrong. Hatred shouldn't be taught."

Hauser did not respond to the Denton newspaper's request for comment Monday.

"As this action shows, Furie will aggressively enforce his intellectual property, using legal action if necessary, to end the misappropriation of Pepe the Frog in any way that espouses racism, white supremacy, Islamophobia, anti-Semitism, Nazism, or any other form of hate," the law firm said in a news release obtained by the Denton Record-Chronicle.

Nina Khalova, a Ukrainian-based illustrator, said in an email to the Record-Chronicle that she was unaware of the controversy surrounding Pepe.

"I didn't even imagine that the Frog and Centipede [Pede] could be turned into these horrible things," Khalova said.

Documents from Khalova show Hauser was aware of the cartoon and sent her a picture of Pepe in June and wrote, "I want The Frog to look very similar to this frog. He will wear a blue shirt."

Hauser was removed from his position before the school year started and asked for reassignment within the district but resigned last week, Denton ISD spokesman Mario Zavala told the newspaper.