def METHOD_NAME(self):
    logging.debug("Received a new image of %d x %d", *self.img.GetSize())
    self.frame.ClientSize = self.img.GetSize()
    if wx.MAJOR_VERSION <= 3:
        self.imageCtrl.SetBitmap(wx.BitmapFromImage(self.img))
    else:
        self.imageCtrl.SetBitmap(wx.Bitmap(self.img))