Added swipe gestures, updated layout for images and fixed bug with rotation