add debug info and rename img_src to cur_img_src