restored draw_instance & imgproto from old code

imgproto is a composite, imgcomponent is a primitive. Draw instances are
necessary to *NOT* use an Immediate Mode style of rendering. Caching is
good.
small fixes

small fixes to previous changes