Adaptive Random Fourier Features Training Stabilized By Resampling With Applications in Image Regression