Made tile use tile positions instead of pixel positions (issue #13)