scroll to thumb

scroll up to image if its top is out of view when shrunk.
Requires jQuery