Fixed bug where the Y coordinate for the bottom of the tile was computed incorrectly.