add support for animated sprites