Please rename to `outputRect` and separate this declaration from input parameters (put it near `numpix` declaration).
Also I suggest to initialize all variables in tests (output variables also).