Added support for swiping images