Fix navbar_random_image_helper

Anchor path at / so it works on sub-pages
generate syntactically correct CSS