Reuse buffer allocation if canvas size does not change