the animation now only starts after the texture was loaded
removing uneeded variable