Hey, be lazy! bLazy.JS is a lightweight pure JavaScript script for lazy loading and multi-serving images. It's working in all modern browsers including IE7+.
What do you mean by correctly? Are you sure it isn't because the image is collapsed?
I made a quick jsfiddle where it works fine: https://jsfiddle.net/2td18ad8/1/
I have tested using svg image. It cannot show the image correctly. But it works when
loadInvisible: true