Move all png optimizations in a loop, so everything is in parallel there.