Relating a variable number of rows in one table to one in another?
The classic way to realize many to many relation is with intermediate table. 
Like
Products(ID) - ProductImages(ProductID, ImageID) - Images(ID)
What is the reason to make these "sets"?