Commit of work-in-progress on ImageGrid.

To-do:
  * Make it work with strided slicing.