Restored image manager library

Commented code of image manager library has been reviewed and
substituted by OpenCV-free code
Fixed minor bugs (one in in tiff2D plugin)