Move viewport check and function call out of data-img.js
Content tweaks