update painter path