Add optional normalization for flatfield