You are designing a photo-sharing application where users can upload, store, and retrieve photos. Photos should be resized and optimized for faster loading. The application must support millions of users globally while keeping costs low. What should you do?