Updated captureTableViewAndScrollBar to support iPad on iOS 7