Fixed bug occuring with animations (sprites were drawn multiple times)