'Parameters
offsetx :
the X offset to start drawing at.
offsety :
the Y offset to start drawing at.
width :
the X portion of the canvas to draw at the starting point.
height :
the Y portion of the canvas to draw at the starting point.'

def draw(self, offsetx=0, offsety=0, width=None, height=None):

    self.qtile.conn.conn.core.CopyArea(self.pixmap, self.wid, self.gc, 0, 0, offsetx, offsety, (self.width if (width is None) else width), (self.height if (height is None) else height))
