Periodic retrieval of pictures from server + some refactoring in slideshow