
  * cursor and tool relationships

  * clean up all the I/O mess

  * "componentize" some parts of GUI so that they don't pollute main code space

  * use libpng instead of PNGImage (license etc.)

  * glitch detection, heuristics?

  * MDI / tabs / ? ; single instance?
