Fixed json_url and infinite looping when no more images are found