added two kernels for image binning and shrinking