Correctly determine and apply extents of transform