pan/mdg: Add new depth writeout code