This algorithm is used for imgae resize.