Refactor image selecting panel. Implement slideshow