Added the ability to empty the array of images before adding new.
This could be helpful to keep the same instance of the slideshow while changing the images source.