Allow to replace loading icon class in options.

Updated version of #63 (sorry for cloning the PR - but the old one didn't update the code).