Start of images, plus changes in old program

I needed to make a catalog with my old code, so I resurrected it an
made some changes to make the task easier. It is in a big mess now. Do
not trust the old code.