Added method to draw Rect