Support for 16-bit color and 8 bit grayscale thumbnails