move brush initialization into painter