fix renderImage invocation