Fixed painting of SelectedShape and associated handles (at least for rectangle).