imaging 2: changed loading bar in part 1, finnished coding for part 2