Fixes image-caching issues for non-js-loaded images (i.e. css background-image)