use wx.Image instead of open + wx.ImageFromBuffer