Allow customizing modal class in constructor.