Added generic tools and examples
fixed a bug where rendering was not clipping to the rendering image and could show pixel data from other images