Image viewer with swipe functionality