Fix error in rmi when conflict

Fixes #1123 

Changes `var imgs []APIRmi` to `imgs := []APIRmi{}` to prevent imgs to be null