There are Muslim gays but this is the first I've heard of a Muslim gay Imam. In Islam, there isn't a leader or leading organization that has the power to rescind an Imam's status after learning of some kind of impropriety. This Imam may have become an Imam without disclosing that he was gay. Or he may have become an Imam and then came out of the closet.
Either way, mainstream Islam considers homosexuality a grievous sin. This is evidenced quite clearly in the story of Prophet Lot in the Quran in which Allah destroyed the entire town of homosexuals or those who supported homosexuality but saved Lot and his daughters.
The best writeup I have found on the subject of WHY Islam prohibits homosexuality is here:
http://islamicresponse.blogspot.com/2009/12/islamic-view-on-homsexuality.html
Just my humble opinion, but I agree that homosexuality is a great sin in Islam. It is not punishable by death as per the Quran. The Quran says Allah punished homosexuals with death in the story of Prophet Lot, true. But this does not necessarily translate to Allah giving mankind the authority to carry out the same punishment on homosexuals. The Quran is pretty clear on which crimes or sins are punishable by death and which crimes or sin are punishable in other ways. So if it hasn't explicitly mentioned homosexuality as punishable by death, it can not be assumed that Islam expects communities to punish homosexuality by death. The decision by certain Islamic governments to punish homosexuality by death is largely culturally influenced.