Generate image ids with random strings to make it possible to have multiple shortcodes on one page