Avoid warning during compilation by using SafeStyles instead of String

Fix issue #30