Intelligent image content delivery network that resizes and optimizes images for end-user devices in real-time