test code to create an image gallery