few changes: in paintPause(): removed inner rect