Implemented bilinear and nearest-neighbour interpolation.