Made Jquery function to cycle through images