Fix time-per-pixel calculation, and downsample to 2*tperpix
Really fix state change I think