adding workaround for FF for grayscale