make snapshotViewAfterScreenUpdates work in ios6