moved shared code into common
added preliminary version of gnd image handler