add cal_refer

Calculate Refer image information.