Adding animation to image transition