python script to create a minimalist photo gallery from within a directory full of images