Compact digital cameras are getting a surprise boost in popularity after having been eclipsed by smartphones for some time.