Persistent docker image information in mongo

Tests provided.