Spatial index

* load sequence of images from a directory
* line and rect drawing primitives
* line operations mid, interpolate, swap
* other misc improvements