added figure2 and background subtraction