Fix error with large images.