Image Interpolation using C++