Fix bug with uncached images