I would like to add to this.
What if the size of the thumbnails varies from page to page? For example, I may have a thumbnail on one page that’s 500 – 600 px, but the same image on another page I need 150-200. Is there no way the thumbnail size code can be added to your shortcode?