Added sprite animation functionality
- Also added OnChangeAttribute for handling property changes