Implemented swipe gestures for previous/next image.