Added existence check for links
Added images for galleries