old_contents: 
  from PIL import Image # Depends on the Pillow lib
  
  from opensimplex import OpenSimplexNoise
  
  WIDTH = 512
  HEIGHT = 512
  FEATURE_SIZE = 24
  
  def main():
      simplex = OpenSimplexNoise()
      im = Image.new('L', (WIDTH, HEIGHT))
  
      for y in range(0, HEIGHT):
          for x in range(0, WIDTH):
              #value = simplex.noise2d(x / FEATURE_SIZE, y / FEATURE_SIZE)
              value = simplex.noise2d(x * 0.05, y * 0.05)
              color = int((value + 1) * 128)
              im.putpixel((x, y), color)
  
      im.show()
  
  if __name__ == '__main__':
      main()
  
new_contents: 
  from PIL import Image # Depends on the Pillow lib
  
  from opensimplex import OpenSimplexNoise
  
  WIDTH = 512
  HEIGHT = 512
  FEATURE_SIZE = 24
  
  def main():
      simplex = OpenSimplexNoise()
      im = Image.new('L', (WIDTH, HEIGHT))
  
      for y in range(0, HEIGHT):
          for x in range(0, WIDTH):
              #value = simplex.noise2d(x / FEATURE_SIZE, y / FEATURE_SIZE)
              value = simplex.noise2d(x * 0.05, y * 0.05)
              color = int((value + 1) * 128)
              im.putpixel((x, y), color)
  
      im.show()
      im.save('noise.png')
  
  if __name__ == '__main__':
      main()
  
subject: Save the generated noise image.