Adding a UIImage category for setting thumbnails.