added linear interpolation in image to use it at the terrain generation