Fix bug where loading the same URL again can cause no image to appear