updating UIView category to have cg and ui version of snapshot to deal with the different coordinate systems.