almost works... I seem to have gotten my x, y flipped...
test files
fixed transposition bug