Benchmark: fixed compilation errors in the image benchmark.
The image benchmark is now functional.