Revoke shared ownership for painters

Use strong ownership when dealing with painters, especially the windows have a ```unique_ptr``` for holding the painters they should manage.
This is a adaption for https://github.com/hpicgs/globjects/issues/276.