added; image animation logic