Create layered g-code from a heightmap image