As you are using `omero.sys.ParametersI()`, the `map` should be automatically initialized and you should be able to use
```
 params.addIds([a.getId() for a in objDict['image']])
```