issue #1034 patch BioFormats TIFF writer to not use AWT unless there is a palette