Indentation here is off.

Should be something like:
```
ret = [{'id': image.id, 'extra': image.extra, 'name': image.name,
        'star': image.id in starred} for image in images]
```
or
```
ret = [{'id': image.id,
        'extra': image.extra,
        'name': image.name,
        'star': image.id in starred} for image in images]
```