[PATCH v3 4/6] winex11: Create XImage before initializing the window surface.