added C image output.