A small utility to slice images along a grid.