The photos take time to download because the pictures are stored on iCloud and are loaded from there itself. Another reason for pictures taking a long time to download is because of numerous photos and taking big space. And it is also due to the 'Optimize iPhone Storage' setting is on. So if you want to know how long does it take to download messages from iCloud then it totally depends on the size.