Make sure repaint calls are outside synchronized blocks