Fixed imagery providers whose rectangle crosses the IDL.

For #2195.
Technically a breaking change, but I don't think it is an issue.