Update AnimatedImage.java

Made it so you could have custom animation times.