Refactored AnimatedGraphicsObject to extend GraphicsObject.