improved animations class, and moved aspect ratio to core