added option to render() to return the raw data array. closes #1523