Create and implement `BackgroundDetector` and place it in `/common` since it seems to have an application in skin-based algo.