converts all  original.mat to base.jpg