Added rectangle drawing functions