formatting
apply all mirror styles as style attrbute string, fix #7