Changed render2d benchmark to pre-generate images.