How Style Transfer Works in AI Image Generation