A method to analyze 2-dimensional daily radiotherapy portal images from an on-line fiber-optic imaging system