Use the image_defer event
compute offset like jQuery does - use elm.getBoundingClientRect + window.page*Offset