Fixed links to images on gallery pages