This question is over five years old, but for those still dropping by, here's a link to an addon I wrote that makes working with large canvases very easy. p5 addon named p5.5