Implemented record of rgb and z (just dumping numpy arrays for now)