1) The Image class is part of our graphics library. Check the graphics reference for how to create a new Image object, by providing the GIF file name and a location for drawing (which isn't important since we aren't drawing it in the window... we're just extracting color information from pixels at random locations within the image.)
2) You'll want to create a new text file, so you will open that file for writing, but note that the file you're opening for writing is NOT the gif image file... it's a file that has the same name except that it should end in .art instead of .gif.
If you open the gif file name for writing you will overwrite the original photograph file!