[fix] code compiles entirely. Not yet run.
[add] ability to archive old images. Untested