generating texture from tile atlas