New algo to mirror images, partially working since now