Shinsengumi is one of the stock staples of Japanese fiction and historical drama. In that sense it's no wonder they are portrayed in myriad forms. The fact they were bad guys, that is, fighting for the shogunate, hasn't diminished their romanticized shine; quite the contrary in fact. I have no doubt great many works of fiction show them in an altogether unrealistic way, just like knights are often shown in European fiction.