an extended sprite animation class for 2d toolkit, with more features than the original