Fixed swapped X and Z coords

It worked fine before, it just annoyed me that I had used X for depth
instead of width.