Catching OpenCV exceptions, and verifying cv:Mat and GimpDrawable compatibility.
Corrected valid image types.