work in progress: converting depth_map.py code into object-oriented