init painter