Paint events rewritted