Trace paint events.