Fix image resize low-res problem, porting in UIImage-Resize