move URL updating so images are fetched properly