Solved problem with rendering tile edges