improve logo flexibility to fix wide custom logo alignment, fix #9339

Fixes #9339. This removed the 300px width restriction on custom logos as well as centers the background div. These changes are MIT licensed.