refactoring and batik renderer draft