Add images to history when they load