add requiered edge buffer for up-sampling