Add UIImage+Snapshot category
Fix build error