removal of old arrays lead to crash, disabled for now. Doesn't seem to cause problems, anyway... Added edge detection and subtraction of edges in current and prev image to try and track detections with it