added num_img to config