implemented bilinear interpolation for scaling up images