In the course I am taking of axiomatic set theory we've defined a family of sets $F$ indexed by $I$ as any function satisfying $dom(F)=I$, where there are no assumptions about its image. This definition confuses me a little because I've read, in other contexts, that families of sets differ from sets because the first can be proper classes while the later obviously can't, but with this definition $Im(F)$ must be a set since it is a subset of $\bigcup \bigcup F$
Could anyone clarify it? Thanks