Prevented negative scrolling

On browsers with rubber-band scrolling, scrolling beyond the top of the
document leads to undesirable displacement of the image. This fix
prevents scrolling beyond the bounds of the document.