To implement marquee effect with images.