further work on Repairimages