Fixed error with rotation of animation and performance fixes