added more opencv types.
improved code structure. added all remaining opencv image types. added comments.