Getty Images and Shutterstock agreed to a $3.7 billion combination, uniting the companies that license their libraries of photographs and other visual content. Both stocks soared on the news.