Command-line Java app to convert TIFF files to indexed grayscale color spaces: greatly reducing the size of the file