Fwiw I'm recreating the images on flush because I think they are supposed to be immutable, and there's some caching that prevent updates from being displayed otherwise. The data provider should not have this restriction and can still own the data.
This should work for now, but it also means that we won't be able to use shared NT sections to back the image data that way later on, as the last provider reference may be released from a non-Wine thread. We'll have to figure to do that another way, or make copies somewhere.