Wavelet Flow For Extragalactic Foreground Simulations