New utility code that rms backgrounds from images.