somehow the `life` data field gets reset when a new image is pushed into the `images` array, while it should stay at its existing level.