Minor refactor and added test for duplicate passes in an object.
Batch renderer now writing png files to disk.

Still assessing correctness of files.