Fixed a bug in the viewer with the 8bits textures