Fixed sync repair for images.
Fixed repair for images.