added support for rectangular clipping bounds