winex11: Add a helper function to create the source pixmap from an image.