Refactored take_snapshot() yet again into take_snapshots() to abstract background and foreground image taking away from main.py into webcam.py. Imported ObjectDetector.py into main.py.