Fix occasional black lines between tiles

Closes #1059
Merge pull request #1091 from dorkster/fixes

Fix occasional black lines between tiles