grayscale output bug gets fixed with this one!