Improve handling of min and extent

Improve Halide's support for filtering subimages, for example when calculating only part of the full output image or when dealing with images that are tiled by the host application. 

The patch adds the ability to access to the coordinate origin from the filter and to change the extent of Images and Buffers.