added renderer creation from memory to C interface