write legacy grayscale to disk