avcodec/tiff: add support for 12bit grayscale images