Replaced animated texture detection to be more flexible with its number replacement.