refactored animation renderer; res should be set as a source folder if it isn't