Fix navbar with images

fixes #31

checks for section offset on scroll instead of at the beginning before images load.