moved Mat2Image class to camera package.