Implement partial FlushImage() system for xgb

Sorry about the cruft in the namespace change, it's been awhile since I've done this with Go code, so I'm unsure how to make Git ignore that part of the change. :s