chunk processing for canvas rendering