wow..it dos not seems easy for a beginner like me !
??
Well, for this particular project, the best way is to invert the use of thumbnails. This way, the 2nd thumbnail for an artist, wich is a painting, can be included in the gallery. And the regular Thumbnail can be used to display the pic of the artist.
(does it make sense?)
Many thanks for your work, it helped me.