def METHOD_NAME(self, painter: "QPainter") -> None:
    if self._mirror:
        painter.drawImage(self.contentsBoundingRect(), self._image.mirrored())
        return
    painter.drawImage(self.contentsBoundingRect(), self._image)