fixed atlas textures generation and their use