use applyBrush instead of renderTo for generating tiles