added bg-subtraction, image cropping, more debug info printed on screen