Masonry grid help

Hey guys, I’m using a masonry grid, and I’m finding that it does not automativally resize the images randomly to achieve this pinterest board style.
Instead, I need to upload images of various sizes.
This would be a pain because the images would be uploaded from the same image generator each time.
Does anyone have an easier way, am I missing something obvious?
Thanks!
Chris