Fix broken preview images.
- Apple updated their API here. Changed from hardcoded string matching to regex to make this method less brittle.