correct sharing urls, extract settings to config.js, fix picture display