Adds edge swipe functionality

Swiping past the edge left or right to go to previous or next image, and
up or down to exit zoom mode or carousel.