Script to create image gallery