Allow animations to be transformed and various memory problems

Now animations can be scaled/translated via RenderStates.
I ran my code trough valgrind and found a leak and a use after free.

This should fix #5