startParallelRendering now receives the function it will start as a parameter