Also, I think you can change this to:
```
return (type(obj) in _galsim.Image.values() or 
        type(obj) in _galsim.ImageView.values() or 
        type(obj) in _galsim.ConstImageView.values())
```
It's slightly cleaner code.