gray scale and save file