Added switches to control image animation to use UIView animation or CAAnimation.