Refactor depth estimation to support debug and production modes; add minified script for streamlined execution