update painting