new method for clipping to raster extents, changes bbox_to_pixel_offsets; fixes #46