Fix an error on the Perlin Noise generator when width != height