Pass the current composition mode to wxOSXDrawNSImage() instead of always using NSCompositeSourceOver in it. See #23245. Closes #23240.