updated text painter