updated rect to use new style methods
Merge pull request #827 from shoes/rect_style

Updated rect to use new style methods

Changelog: improvement