Fixed silly array bounds bug in background subtraction