Speed up the display of gray level image.