A German political leader is stepping down from his post after posting to social media images of himself styled as Hitler.

Lutz Bachmann, 41, also espoused racist slurs on Facebook along with the startling image.

“Yes, I am stepping down from the board,” Bachmann told Germany’s Bild publication.

Bachmann was previously the head of PEGIDA , an anti-Islamization movement in Germany.

“I sincerely apologize to all citizens who felt attacked by my posts,” he added to his followers on Facebook.

“They were thoughtless statements that I would not make today. I am sorry that I have damaged the interests of our movement with them and I am acting accordingly.”

The Hitler “selfie” began to circulate online Wednesday, almost instantly drawing ire in Germany, where Nazi imagery is strictly regulated. Other Facebook posts on Bachmann’s account have referred to refugees as both “filth” and “beasts.”

PEGIDA spokeswoman Kathrin Oertel said the “Hitler selfie” was “satire, which is every citizen’s right” but added the “sweeping insults against strangers” was a step beyond decorum.

The group has been strongly criticized from within Germany’s leadership, including censure from German Chancellor Angela Merkel. PEGIDA stands for Patriotic Europeans Against the Islamization of the Occident.