Ability to pass an existing canvas or context

This way if I have an existing canvas or context, I can just save the ndarray to it.

I'm working on a 2d game built on ndarrays. I would like to save the pixels from a ndarray per animation frame to a canvas. Let me know if this method isn't the best way.

Thanks!