Added input processing
overload constructor for AnimatedImage