added some framework for tile render.