Fix a number of issues relating to pixel accuracy. …
There's a lot of work to be done here still, but this is a good number of fixes to push.