Image Processing primitives and bug fixes.