Made work on rendering tiles