Make the lightbox work with image-deferrer (bug 1030159)

https://bugzilla.mozilla.org/show_bug.cgi?id=1030159

Losing the swipe w/ snap made me sad, so here is my attempt to keep flipsnap, making image deferring work with it.
jQuery has offset now if that is a cleaner alternative