update paint for object