If you have 2D array of grayscale values, you can display the array in an Intensity Graph display.
If you set the colormap of the Intensity Graph to ramp from black-to-white, (and enable interpolate colors), the data will be displayed as a gray image.