Fixed the bug where pixel 127 or 128 was getting added twice.
corrected the same thing in the inverse file (hopefully consistently, much harder to check)