If an image is deleted and there is a corresponding device for that image we also delete the image. Upstream-commit: 3f3f5f0bbaafc67d3f77b920194f8d7bfb7bf6ee Component: engine