Support imagery layer rectangles that don't align with tile boundaries.

Fixes #416.