Make sure we never repaint off the UI thread