To do:
=====

 * Add more options:
    - More flexible way to determine the size of images, both thumbs
      and real images.
    - Make it possible to use external images, accessible via URL:s. 
    - Should the large images be converted somehow (be made
      progressive, for instance) and to what format? Other formats
      than .jpg should be handled.
    - Make it possible to make links just to "next" and "previous"
      page instead of a navigator with links to all pages. Or both.
      It should also be possible to specify alternate names for the
      numbered links to other pages.
    - It should be possible to specify attributes for the <td> tags. 
    - Make it possible to read images from more than one indir (with a
      regexp). 
    - The HTML code for head and foot should be possible to read from
      files instead of specifying in on a single line in the config
      file. 
    - Option to avoid reading ~/.indexpagerc.
    - Exclude option (like order, but not).

 * Why does Emacs indent some lines in the code incorrectly? It seems
   to have something to do with the q{}-line.

 * Perhaps the thumbs should be reduced to 256 colors or something
   like that?

 * Stop using global variables.

 * Make the code check for the Image::Size module and exit gracefully
   if it isn't installed.

 * If, for some reason, an input image is smaller than the thumb size,
   the thumb will be expanded now. This might not be desired. 

 * Handle non-/-separated filesystems

 * --indir and --inplace doesn't do quite what I think it should.  I
     think. If I have a bundle of images in ./images/ and want the
     html files in ., how to do?

 * Add new mode:

       +--------------------+
       |+-----+ asda asdldf |
       ||     | asdk fasdl  |
       |+-----+             |
       |sldk sdlk  +------+ |
       |sldkg sd d |      | |
       |lskd dfg   +------+ |
       |          .         |
       |          .         |
       |          .         |

 * Don't recreate thumbnails if they already exist (unless forced).
