Added compression to depth data
Added code optimizations