Build up output image over several passes
Performance optimisation
Fix output glitch