Header scroll improvements.

Resolves #12 and also adds more checks to improve the scrolling effect of the image header and text.