Guard against trying to make unreasonably large images.