Added support for sprite animations