added alpha state optical flow detection - parameters and method needs further refirement