Link generator for Photoswipe