Repair size of images