Fix animated textures with atlas