fix depth image encoding