make sure slideshow images are only jpeg