Added some methods to further automate sprite animation handling.