Fix corrupt image.