code: def img(self):
          '''return a wx image'''
          import wx
          with warnings.catch_warnings():
              warnings.simplefilter('ignore')
              img = wx.EmptyImage(self.width, self.height)
              img.SetData(self.imgstr)
          return imf img(self):
          '''return a wx image'''
          import wx
          with warnings.catch_warnings():
              warnings.simplefilter('ignore')
              img = wx.EmptyImage(self.width, self.height)
              img.SetData(self.imgstr)
          return img
docs: return a wx image