Prevent deletion of image if ANY container is depending on it; not just running containers

Fixes #643 (at least, both the listed repro cases).