Fairly major changes. Mainly the in way that the conversion is done. Rather than using ranges of RGB values directly, the image is decomposed into HSV and the hue component is used to map the depth values. This seems to work pretty well for the rainbow paletted image I used to build this, but there is no guarantee it will work with other colour palettes