use ViewPager and PagerAdapter to implement image flipping