def METHOD_NAME(self, canv, x, y, _sW):
    # Add outline entry. This is copied from rst2pdf.flowables.heading
    canv.bookmarkHorizontal(self.parent_id, 0, y + self.image.height)
    if canv.firstSect:
        canv.sectName = self.stext
        canv.firstSect = False
        if self.snum is not None:
            canv.sectNum = self.snum
        else:
            canv.sectNum = ""
    canv.addOutlineEntry(self.stext, self.parent_id, int(self.level), False)
    # And let MyImage do all the drawing
    MyImage.METHOD_NAME(self, canv, x, y, _sW)