riginally written by Mark Davies <mdavies@dial.pipex.com>
gPhoto2 port by Raymond Penners <raymond@dotsphinx.com>