Creating a dynamic photo gallery based on snipe.js