Fixed cal_img problem.