refactored svg header into instance method