generalised renderImage using the mode string