Looking to create a Masonry layout with images but running into the issue of large image sizes. Wanting to limit each image to 30% of the screen width while maintaining proportionate height. How do websites like Flickr and Pinterest handle this when uploading images of different sizes? Do they resize the HTML, use JavaScript, or something else entirely? What would be the most effective approach to achieve this? Thank you.