added ivar repopulation
tex images
new fit without brightness and with cont_est