code: function onload() {
  		// Create pattern
  		pattern = ctx.createPattern(img, params.repeat);
  		// Run callback function if defined
  		if (params.load) {
  			params.load.call($canvases[0], pattern);
  		}
  	}
docs: Function to be called when pattern loads