Used the faster UISnapshot API for screenshotting in case of iOS 6