[Paint] getting rid of statistics computation after each stroke