Add warning if ImageDB is uninitialized.
Instead of just exiting without error and warning, issue a diagnostic.