Addded functionality to show pictures as slideshow