Or maybe, and this might sound crazy, just USE THE FUCKING IMAGE TAG.
Seriously, websites where the images are broken without javascript are FUCKING ANNOYING.
There are image formats that support progressive rendering. Use those if you're that desperate, but STOP BREAKING THE FUCKING INTERNET FOR NO GOOD REASON.