fixing inmages covariate adjustment