properly show grayscale image