missing refactor - modifyImages expects a data object, somehow this commit was omitted.