Add photoswipe in legacy
Remove global namespaces and window registrations from photoswipe