add method snapshotView for UIView