Added a usage checker to the rect function in the draw package