Skip attempting to delete images of running containers.

If there's a running container for an image up for deletion, the deletion will fail causing the task to fail. This PR updates the removal functionality to skip images related to running containers.