added difference based background subtraction and ellipse fitting