Better handling of different depth image encodings