implement reduction to build complete image on thread 0
restrict image generation to thread 0