fix if image is already loaded by the browser