"all fixed"
now can reduce image to width specified by user with good results
deleted print_string lines
rewrited "matrice_energy" function in a more elegant way (now called "make_energy_matrix")