fix #1013
fix renderImage invocation