updateFrame function

Updates the initial frame on the basis of the optimized stratification