I think you just need the `image_name` line.

```
image_name = [img for img in cs.images.list() if "Fedora 20" in img.name][0]
```

`img` is unused there.