Smooth Image Rescaling with Bilinear Interpolation - Coding problem | OneNoughtOne