code: def drawImage(self, image):
          
          padding = image.width() % 4
          for i in range(0, image.height()):
              tmp = image.copy(0, i, image.width() + padding, 1)
              #in RDP image or bottom top encoded
              ptr = tmp.bits()
              ptr.setsize(tmp.byteCount())
              self._controller.sendUpdate(self._dx, i + self._dy, image.width() + self._dx - 1, i + self._dy, tmp.width(), tmp.height(), self._colorDepth, False, ptr.asstring())
docs: Render of widget