The wx.DragImage ctor can now accept either the text or an image, so this could be changed to something like: 

```
item = self.dragShape.text if self.dragShape.text else self.dragShape.bmp
self.dragImage = wx.DragImage(item, ...)
```