added closeSrc and closeClassName options