Viber uses a CDN (Content Delivery Network) for images. The URLs are obfuscated, but sometimes leakable.
Android devices store cached copies of images, including profile pictures. This method lets you extract the image exactly as Viber downloaded it, before it was rendered on screen.