added n_img