Added rotation to all the rectangle drawing functions.