beginning to write the AnimatedImageLib class