fixed rendering

fixed rendering so now able to render tiles