def drawRect(page, rect, color=None, fill=None, dashes=None,
             width=1, roundCap=False, morph=None, overlay=True):
    """Draw a rectangle.
    """
    img = page.newShape()
    Q = img.drawRect(Rect(rect))
    img.finish(color=color, fill=fill, dashes=dashes, width=width,
                   roundCap=roundCap, morph=morph)
    img.commit(overlay)

    return Q
Draw a rectangle.