worked with photo-gallery template and other templates