Didn`t the "pains" also had rinnengan eyes? he either transplanted some from his room or used whatever ability Nagato used.
ahh, okay.
I always thought this was some kind of "rinnegan magic" - the puppets recieve the same eyes the controler has. come to think of it, this would explain it as well.