update the tool painter path only if something changed