improved code for image db update.
Some improvements in repairing and upgrading images.
Another improvment on image updates.
Fixed sync repair for images.
Fixed repair for images.
Bump.