THREE.js sprite animation class based on stemkoski's work