update tiffgray.py