Threshold project : SRC catch exception now when reading and writing the...

... image files. Tests realized : opening file, wrong image input , out of boundaries threshold values, correct inputs.