Bug fix : NPE when the first SurfaceLine of a Surface is null in getZMap() method in Surface class.
Replacement of surfaceLines.length and surfaceLines[0].length by GetWidth() and getHeight() methods
Replacement of surfaceLines.length and surfaceLines[0].length by GetWidth() and getHeight() methods