Port ScaledImageFactory to wxMultiThreadHelper