2d version infinite loop with images. Annoying replication bug though