First draft implementation of tile rendering;